import { JSONMapping } from "../json-mapping";
import { UserDto } from "../dto/user.dto";
// import {Bill} from "../bill/bill";
import {ObjectDto, ObjectDtoInterface} from "../../services/sqliteDB/object.dto";
import {SyncStatus} from "../sync-status";

export class SysUser extends JSONMapping implements ObjectDtoInterface {
    static PropertyKeyToJSONKeyMap() {
        return {
          name: "userName",
          account: "userAccount"
        };
    }
    public id: number = null;
    public name: string = null;
    public mobile: string = null;
    public account: string = null;
    public syncStatus: SyncStatus = SyncStatus.None;
    // bills: Array<Bill> = [];


    constructor(json: { [key: string]: any }) {
        super(json);
        SysUser.mapFromJSON(json, this);
    }
}

